package com.hehui.module.customer.entity;

import com.hehui.common.core.commom.BaseEntity;

import javax.validation.constraints.Email;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BaseCustomer extends BaseEntity {
    private static final long serialVersionUID = 1L;
    //客户ID
    private Long customerId;
    //客户所属商户
    private Long merchantId;
    //客户登录账号
    private String username;
    //客户昵称
    private String name;
    //密码
    private String password;
    //关联的省级ID
    private Long provinceId;
    //关联的市级ID
    private Long cityId;
    //关联的区级ID
    private Long districtId;
    //客户邮箱
    private String mail;
    //客户手机号
    private String mobile;
    //上传的营业执照地址
    private String licensePath;
    //营业执照上的地址
    private String licenseAddr;
    //红包
    private Double redEnvelope;
    //当前积分
    private Long currentAdvantage;
    //最大积分
    private Long maxAdvantage;
    //客户类型id
    private Long typeId;
    //客户状态  0正常  1冻结
    private String state;
    //关联的业务员ID
    private Long salesman1;
    //关联的业务员ID
    private Long salesman2;
    //注册方式
    private String register;
    //客户编号
    private String num;
    //邀请人ID
    private Long inviterId;
    //结算方式    1:现付  2预付 3后付
    private String clearing;
    //归属区ID
    private Long localeId;
    //删除状态
    private String isDel;
    //商品品牌屏蔽
    private List<Long> trademarks = new ArrayList<>();



    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    @Size(min = 11, max = 11, message = "手机号长度为11")
    public String getMobile() {
        return mobile;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Long getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Long districtId) {
        this.districtId = districtId;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getLicensePath() {
        return licensePath;
    }

    public void setLicensePath(String licensePath) {
        this.licensePath = licensePath;
    }

    public String getLicenseAddr() {
        return licenseAddr;
    }

    public void setLicenseAddr(String licenseAddr) {
        this.licenseAddr = licenseAddr;
    }

    public Double getRedEnvelope() {
        return redEnvelope;
    }

    public void setRedEnvelope(Double redEnvelope) {
        this.redEnvelope = redEnvelope;
    }

    public Long getCurrentAdvantage() {
        return currentAdvantage;
    }

    public void setCurrentAdvantage(Long currentAdvantage) {
        this.currentAdvantage = currentAdvantage;
    }

    public Long getMaxAdvantage() {
        return maxAdvantage;
    }

    public void setMaxAdvantage(Long maxAdvantage) {
        this.maxAdvantage = maxAdvantage;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Long getSalesman1() {
        return salesman1;
    }

    public void setSalesman1(Long salesman1) {
        this.salesman1 = salesman1;
    }

    public Long getSalesman2() {
        return salesman2;
    }

    public void setSalesman2(Long salesman2) {
        this.salesman2 = salesman2;
    }

    public String getRegister() {
        return register;
    }

    public void setRegister(String register) {
        this.register = register;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public Long getInviterId() {
        return inviterId;
    }

    public void setInviterId(Long inviterId) {
        this.inviterId = inviterId;
    }

    public String getClearing() {
        return clearing;
    }

    public void setClearing(String clearing) {
        this.clearing = clearing;
    }

    public Long getLocaleId() {
        return localeId;
    }

    public void setLocaleId(Long localeId) {
        this.localeId = localeId;
    }

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    public List<Long> getTrademarks() {
        return trademarks;
    }

    public void setTrademarks(List<Long> trademarks) {
        this.trademarks = trademarks;
    }
}